﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using djpp.UtilsForm;

namespace djpp.DomainModel
{
    public class CreateProjectCommand : ICommand
    {
        public CreateProjectCommand(object o)
        {
            _parrent = o;
        }
        public string Descr { get { return "Create new project"; } }
        public void Execute()
        {
            var dlg = new CreateProjectForm();
            if(dlg.ShowDialog() == DialogResult.OK)
            {
                var prj = new Project(name => dlg.GetName(), path => dlg.GetPath());
            }
        }

        private object _parrent;
    }
}
